package it.slothy.noveleditor.classes.objects.quest;

import java.util.ArrayList;

import it.slothy.noveleditor.classes.elements.VNObject;
import it.slothy.noveleditor.classes.objects.Actor;
import it.slothy.noveleditor.classes.objects.Item;
import it.slothy.noveleditor.classes.objects.effect.Effect;
import it.slothy.noveleditor.enumaration.VNEnumObject;

public class Quest extends VNObject {
	
	//Actor che ci ha dato la quest
	private Actor source;
	
	//Descrizione della Quest
	private String description;
	
	//Prerequisiti della Quest
	private ArrayList<Effect> prerequisites;
	private ArrayList<Effect> rewards;
	private ArrayList<Item> itemsReward;
	private ArrayList<ObjectiveQuest> objectives;

	public Quest(Actor source, String n, String d) {
		super(VNEnumObject.OBJ_QUEST, n);

		this.setDescription(d);
		this.prerequisites = new ArrayList<Effect>();
		this.rewards = new ArrayList<Effect>();
		this.objectives = new ArrayList<ObjectiveQuest>();
		this.itemsReward = new ArrayList<Item>();
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public ArrayList<Effect> getPrerequisites() {
		return prerequisites;
	}

	public ArrayList<Effect> getRewards() {
		return rewards;
	}

	public ArrayList<ObjectiveQuest> getObjectives() {
		return objectives;
	}
	
	public ArrayList<Item> getItemsReward() {
		return itemsReward;
	}

	public Actor getSource() {
		return source;
	}

	public void setSource(Actor source) {
		this.source = source;
	}

}
